/*
 * ========================================================
 * Copyright(c) 2014 杭州龙骞科技-版权所有
 * ========================================================
 * 本软件由杭州龙骞科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * http://www.hzdracom.com/
 * ========================================================
 */
package com.shwread.android.ui.page;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.shwread.android.qysw.activity.BaseBusinessActivity;
import com.shwread.android.qysw10000182.R;
import com.tgx.tina.android.ipc.framework.IUIPage;

import base.tina.core.task.infc.ITaskResult;


/**
 * @Project： Lqyd_Android
 * @Title：CopyRightPage
 * @Description：
 * @Author：wayne
 * @Date：2014年9月2日下午3:40:36
 */
public class CopyRightPage
        extends
        AbstractUIPage<BaseBusinessActivity>
        implements
        OnClickListener
{
	
	private TextView tvTitle;
	
	/**
	 * <p>
	 * Title:
	 * </p>
	 * <p>
	 * Description:
	 * </p>
	 * 
	 * @param t
	 */
	public CopyRightPage(BaseBusinessActivity t) {
		super(t);
	}
	
	@Override
	public <E extends Activity> View createView(E e, int initializers) {
		if (null != curMyView) return curMyView;
		curMyView = bActivity.getLayoutInflater().inflate(R.layout.copyright_lay, null);
		
		tvTitle = (TextView) curMyView.findViewById(R.id.common_header_name);
		tvTitle.setText("版权声明");
		Button btnBack = (Button) curMyView.findViewById(R.id.common_header_back);
		btnBack.setVisibility(View.VISIBLE);
		btnBack.setOnClickListener(this);
		TextView tvIntro = (TextView) curMyView.findViewById(R.id.copyright_tv);
		tvIntro.setText(bActivity.getResources().getString(R.string.copyright));
		
		return curMyView;
	}
	
	@Override
	public View updateView(int toStatus, ITaskResult data) {
		return null;
	}
	
	@Override
	public void notifyView(int cmd, Bundle bundle) {
		
	}
	
	@Override
	public int enter(IUIPage<?> prePage) {
		return 0;
	}
	
	@Override
	public int leave(IUIPage<?> nextPage) {
		return 0;
	}
	
	@Override
	public void setStatus(int status) {
		
	}

	@Override
    public void onClick(View v) {
		switch (v.getId()) {
			case R.id.common_header_back:
				bActivity.onBackPressed();
				break;
			
			default:
				break;
		}
    }
	
}
